package com.study.samsung.Entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Classification {
    private Integer lid;//类别id
    private String lname;//类别名称
    private List<Commodity> commodities;
    private Integer xid;

    public List<Commodity> getCommodities() {
        return commodities;
    }

    public void setCommodities(List<Commodity> commodities) {
        this.commodities = commodities;
    }

    public Classification(Integer lid, String lname, Integer xid) {
        this.lid = lid;
        this.lname = lname;
        this.xid = xid;
    }
}
